package com.Jhu1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @TableName material
 */
@TableName(value = "material")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Material {
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    
    /**
     * 材料名称
     */
    private String materialName;
    
    /**
     * 材料单价
     */
    private BigDecimal materialPrice;
    
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}